package com.stm.bi.enums;


import com.stm.framework.annotation.EnumValue;

@EnumValue
public enum ProductStructType {

    CATEGORY("category", "品类"),
    ASSORTMENT("assortment", "品种"),
    STYLE("style", "款式");

    @EnumValue
    private final String value;
    /**
     * 字段类型描述
     */
    
    private final String desc;

    ProductStructType(String value, String desc) {
        this.value = value;
        this.desc = desc;
    }

    public static ProductStructType getSalesType(String value) {
        for (ProductStructType ut : ProductStructType.values()) {
            if (ut.getValue().equals(value)) {
                return ut;
            }
        }
        return null;
    }

    public String getValue() {
        return this.value;
    }

    public String getDesc() {
        return desc;
    }


}
